package com.rd.student.dashuju.zhengchengxiang.July13th.Test;

import java.util.LinkedList;

class NameUtils  {


    public static LinkedList nameUtils(LinkedList list) {

        LinkedList AllName = new LinkedList();

        for (int i = 0; i < list.size(); i++) {

            Student student = (Student) list.get(i);
            AllName.add(student.getName());

        }
        System.out.println(AllName);
        return AllName;

    }

}
